<?php
class Language extends AppModel {
    
    public $name = 'Language';
    public $useTable = 'language';
    public $primaryKey = 'language_id';
    
    
    public static function getList(){
        $data = array();
        $ob = new Language();
        foreach($ob->find('all') as $value){
            $data[] = $value['Language']['key'];
        }
        return $data;
    }
    
}
